<template>
	<view class="contain">
		<view class="tools-title-up">
			<text class="title">实用工具</text>
		</view>
		<view class="tool">
			<u-grid :col="4" :border="false">
				<u-grid-item v-for="(item,index) in toolsList" :key="index" @click="jumpToPage(item)">
					<image :src="item.srcimg"></image>
					<view class="grid-text">{{item.text}}</view>
				</u-grid-item>
			</u-grid>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				toolsList:[
					{
						srcimg:'../../static/homeicon/001.png',
						text:'注册核名',
						path: '../../pageTwo/financialService/register/register'
						// ../../pageTwo/tools/register
						
					},
					{
						srcimg:'../../static/homeicon/002.png',
						text:'个税计算',
						path: '../../pageTwo/tools/calculator'
					},
					// 					{
					// 	srcimg:'../../static/homeicon/003.png',
					// 	text:'风险测试',
					// 	path: '/'
					// },
					// 					{
					// 	srcimg:'../../static/homeicon/004.png',
					// 	text:'发票检验',
					// 	path: '../../pageTwo/tools/checkTicket'
					// },
										{
						srcimg:'../../static/homeicon/005.png',
						text:'合同模板',
						path: '../../pageTwo/tools/contractDemo'
					},
										{
						srcimg:'../../static/homeicon/006.png',
						text:'资质查询',
						path: '../../pageTwo/tools/query'
					},
					// {
					// 	srcimg:'../../static/homeicon/007.png',
					// 	text:'节税计算',
					// 	path: '/'
					// },
					// {
					// 	srcimg:'../../static/homeicon/008.png',
					// 	text:'商标查询',
					// 	path: '../../pageTwo/tools/brandQuery'
					// },
				]
				
			}
		},
		methods:{
			goContract() {
				uni.navigateTo({
				  url: '../../pages/mine/contract/contract',
				})
			},
			jumpToPage(value){
				uni.navigateTo({
					url: value.path
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.contain {
		.tool{
			image{
				width: 60rpx;
				height: 56rpx;
			}
		}
	}
	.title{
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
		margin-left: 30rpx;
	}
	.grid-text {
	  font-size: 26rpx;
	  margin-top: 20rpx;
	  color: #333333;
	}
</style>
